package com.diaohaiwen.basic.websockt.obj.model.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class NoticeTableDef extends TableDef {

    /**
     * 消息通知

 @author 刁海文
 @since 2023/12/7 22:15
     */
    public static final NoticeTableDef NOTICE = new NoticeTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    /**
     * 是否为群组
     */
    public final QueryColumn GROUP = new QueryColumn(this, "IS_GROUP");

    /**
     * 发送内容
     */
    public final QueryColumn CONTENTS = new QueryColumn(this, "contents");

    /**
     * 发送者ID
     */
    public final QueryColumn SENDER_ID = new QueryColumn(this, "sender_id");

    /**
     * 发送者IP
     */
    public final QueryColumn SENDER_IP = new QueryColumn(this, "sender_ip");

    /**
     * 接受者ID
     */
    public final QueryColumn RECEIVER_ID = new QueryColumn(this, "receiver_id");

    /**
     * 发送者名称
     */
    public final QueryColumn SENDER_NAME = new QueryColumn(this, "sender_name");

    /**
     * 数据类型
     */
    public final QueryColumn NOTICE_TYPE = new QueryColumn(this, "NOTICE_TYPE");

    public final QueryColumn CREATED_TIME = new QueryColumn(this, "CREATED");

    /**
     * 接受者的名称
     */
    public final QueryColumn RECEIVER_NAME = new QueryColumn(this, "receiver_name");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, GROUP, CONTENTS, SENDER_ID, SENDER_IP, RECEIVER_ID, SENDER_NAME, NOTICE_TYPE, CREATED_TIME, RECEIVER_NAME};

    public NoticeTableDef() {
        super("", "NOTICE");
    }

}
